package com.hopu.oa.service.process;

import com.hopu.oa.entity.process.*;
import com.hopu.oa.entity.user.AoaUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface auditService {


    List<ProcessAll> findAll(@Param("userId") Integer userId, @Param("find") String find, @Param("index") Integer index, @Param("size") Integer size);


    int deleteProcess(@Param("processId") Integer processId);

    List<AoaUser> findUserInfoByName(Integer userId, String userName, @Param("index") int index, @Param("size") int size, int roleId);

    List<AoaUser> MailFindUserInfoByName(Integer userId, String userName, @Param("index") int index, @Param("size") int size, int roleId);

    AoaProcessList selectOneById(int id);

    List<AoaReviewed> selectReviewedByid(int pid);

    AoaBursement selectBursementById(int pid);

    AoaEvectionmoney selectEvectionMoneyById(int pid);

    int updateReviewed(String advice, String reviewedTime, int statusId, int proId, int uid);

    int insertIntoReviewed(int proId, int uid);

    int updateProcessByid(int statusId, int proid);

    int selectIDByName(String name);

    int updateReviewedAllUser(int statusId, int proId);

    AoaReviewed selectByid(int proId, int uid);

    AoaProcessList selectProcess(@Param("proId") Integer proId);

    AoaReviewed selectReviewedYN(@Param("proId") Integer proId, @Param("userId") Integer userId);

    List<AoaReviewed> selectReviewedStatusId(@Param("proId") Integer proId);

    int deleteReviewedByNoDeal(@Param("proId") Integer proId);

}
